import React from 'react'
import Login from './pages/Login'
import AdminIndex from './pages/AdminIndex'
import { Route ,Switch ,Redirect } from 'react-router'
import 'antd/dist/antd.css'

const App = ()=>{
    return(
        <div>
            <Switch>
            <Route path='/login' component={Login}/>
            <Route path='/index' component={AdminIndex}/>
            <Redirect to='/login'/>
            </Switch>
        </div>
    )
}

export default App